Complete Balancing via Rotation
نویسندگان
چکیده
Trees are a fundamental structure in algorithmics. In this paper we study the transformation of an arbitrary binary tree S with n vertices into a completely balanced tree T via rotations, a widely studied elementary tree operation. Combining concepts on rotation distance and data structures we give a basic algorithm that performs the transformation in Θ(n) time and Θ(1) space, making at most 2n − 2 log2 n rotations and improving on known previous results. The algorithm is then improved, exploiting particular properties of S. Finally, we show tighter upper bounds and obtain a close lower bound on the rotation distance between a zig-zag tree and a completely balanced tree. We also find the exact rotation distance of a particular almost balanced tree to a completely balanced tree, and thus show that their distance is quite large despite the similarity of the two trees.
منابع مشابه
Comparison of soft tissue balancing, femoral component rotation, and joint line change between the gap balancing and measured resection techniques in primary total knee arthroplasty
BACKGROUND This meta-analysis was designed to compare the accuracy of soft tissue balancing and femoral component rotation as well as change in joint line positions, between the measured resection and gap balancing techniques in primary total knee arthroplasty. METHODS Studies were included in the meta-analysis if they compared soft tissue balancing and/or radiologic outcomes in patients who ...
متن کاملTuning-up and driving a redox-active rotor.
The dynamic bistable rotational behaviour of a copper(I) coordination environment can be rationally tuned with balancing the substituent size on the rotor. Such rotors are sensitive to weak interactions, and the rotation was driven by a redox reaction on a ferrocenyl moiety via reconstruction of the charge interaction between redox centres.
متن کاملSuperfluid He in Rotation: Single-Vortex Resolution and Requirements on Rotation
The present generation of rotating refrigerators, which are used for the study of quantized vorticity in helium superfluids, are often capable of cooling to mK temperatures and rotate up to ’ 1 rev/s. To achieve single-vortex resolution at all rotation velocities, smooth and stable rotation is required. This calls for low and stable rotational friction, sufficient axial alignment and lateral ba...
متن کاملThe Three-Color and Two-Color Tantrix Rotation Puzzle Problems are NP-Complete via Parsimonious Reductions
Holzer and Holzer [HH04] proved the Tantrix rotation puzzle problem with four colors NP-complete. Baumeister and Rothe [BR07] modified their construction to achieve a parsimonious reduction from satisfiability to this problem. Since parsimonious reductions preserve the number of solutions, it follows that the unique version of the four-color Tantrix rotation puzzle problem is DP-complete under ...
متن کاملBalancing of a Small Satellite Attitude Control Simlator on an Air Bearing
This paper discusses the balancing of a groundbased satellite simulator. The simulator uses an air bearing as the primary method for the emulation of the frictionless environment of space. Of particular concern for accurate simulation is system balancing. 'Balancing' refers to the process of moving the center ofmass(CM) of the simulator near to the center of rotation(CR) of the air-bearing to r...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Comput. J.
دوره 59 شماره
صفحات -
تاریخ انتشار 2016